import React from 'react'

class Index extends React.PureComponent {
  render() {
    const { count } = this.props
    return (
      <div>
        子组件
        <h2>{count}</h2>
        <button onClick={this.props.addCount}>+1</button>
      </div>  
    )
  }
}

export default Index